

{% extends 'template/base.html' %}
{% block head %}
    <title>用户登录</title>
    {{ super() }}
{% endblock %}

{% block body %}

  {% include 'template/user-header.html' %}

    <form action="" class="form-horizontal" method="post" id="form_users_register">
        <h1 style="margin-bottom: 50px">用户登录</h1>

        <div class="form-group">
            <label class="col-sm-2 control-label">邮箱</label>
            <div class="col-xs-8">
                <input type="text" class="form-control" name="email" placeholder="邮箱"
                       value="{{ form.data['email'] }}" required/>
                <div style="text-align: left;color: red;"> {{ form_errors.email | join('，') }} </div>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">密码</label>
            <div class="col-xs-8">
                <input type="password" class="form-control" name="password" placeholder="密码"
                       value="{{ form.data['password'] }}" required/>
                <div style="text-align: left;color: red;"> {{ form_errors.password | join('，') }} </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">管理员</label>
            <div class="col-xs-8">
                <select class="form-control" name="admin">
                    <option>否</option>
                    <option>是</option>
                </select>

            </div>
        </div>


        <div style="color: red;">{{ messages | join('，') }}</div>


        <p class="but">
            <button type="submit" class="btn btn-success">登录</button>
            {#            <button type="button" class="btn btn-default">去注册</button>#}
        </p>
    </form>
{% endblock %}
{#<!doctype html>#}
{##}
{#<html>#}
{#<head>#}
{#    <meta charset="utf-8"/>#}
{#    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/index.css') }}"/>#}
{#    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->#}
{#    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"#}
{#          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">#}
{#    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->#}
{#    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css"#}
{#          integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">#}
{#    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->#}
{#    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"#}
{#            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"#}
{#            crossorigin="anonymous"></script>#}
{#    <link href="https://cdn.bootcss.com/normalize/8.0.1/normalize.min.css" rel="stylesheet">#}
{#</head>#}
{#<body>#}
{#<article>#}
{#    <header><!--标题-->#}
{#        <h1 align="left"><a href="list.html">网上零食销售系统 | Online snack sales system</a></h1>#}
{#        <nav class="head_nav" align="right">#}
{#            <a href="list.html"><span>首页</span></a>#}
{#            &nbsp;&nbsp;|&nbsp;&nbsp;#}
{#            <a href="admin_login.html"><span>管理员登陆</span></a>#}
{#            &nbsp;&nbsp;|&nbsp;&nbsp;#}
{#            <a href="about_us.html"><span>关于</span></a>#}
{#        </nav>#}
{#    </header>#}
{##}
{#    #}
{##}
{#</article>#}
{#<footer><!--尾注-->#}
{##}
{#</footer>#}
{#</body>#}
{#</html>#}